// types
//1 number
//2 operator
//3 function
//4 variable
//5 comma
//6 function stuff for magic functions

//operator
//1 +
//2 -
//3 *
//4 /
//5 ^
//6 (
//7 )
//8 %
//9 :=
//10 !
// 11 =
//12 >
// 13 <
// 14 ≤
// 15 ≥
// 16 ≠
package formuParse;

public class Token
{
	public double number;
	public int type;
	public int operator;
	public String variable;
	public String function;
	public int error;
	boolean done;
	public String magic;
	int params;

	public int prec()
	{
		switch (operator)
		{
		case 11:
		case 12:
		case 13:
		case 14:
		case 15:
		case 16:
			return 4;
		case 1:
		case 2:
			return 3;
		case 3:
		case 4:
		case 8:
			return 2;
		case 5:
			return 1;

		}
		return -1;
	}
}